﻿#pragma once
#include "NotePadConfig.h"
#include <qtextcursor.h>
#include <QTextDocumentFragment>
#include "iQTextDocumentFragment.h"
class iQTextCursor :
	public QTextCursor{
public:
	iQTextCursor():QTextCursor(){}
	iQTextCursor(QTextDocument* document):QTextCursor(document){}
	iQTextCursor(QTextCursor TextCursor) :QTextCursor(TextCursor) {}

	void insertMarkdown(const QString& markdown,
		QTextDocument::MarkdownFeatures features = QTextDocument::MarkdownDialectGitHub);
	iQTextDocumentFragment selection() const;
	//void select(SelectionType selection);

	virtual ~iQTextCursor(){}
};

